home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global ragid, ragman, thestagescript, stay
- go("Awdone")
- if value(ragid) then
- if the castType of cast ragid = #bitmap then
- set the castNum of sprite (ragman + 2) to ragid
- end if
- end if
- set myclick to the clickOn
- set mkcast to the castNum of sprite myclick
- set the castNum of sprite myclick to mkcast + 11
- set roller to the mouseCast
- repeat while the mouseDown
- if the mouseCast <> roller then
- set the castNum of sprite myclick to mkcast
- if not rollOver(1) then
- exit repeat
- end if
- set myclick to (the mouseH / 58) + 2
- set mkcast to the castNum of sprite myclick
- set the castNum of sprite myclick to mkcast + 11
- set roller to the mouseCast
- end if
- updateStage()
- end repeat
- updateStage()
- set stime to 0
- if the number of cast string(myclick - 2) > 0 then
- set stime to 45 + (the size of cast string(myclick - 2) / 183)
- end if
- puppetSound(string(myclick - 2))
- set ptime to the timer
- if stime > 0 then
- repeat while the timer < (stime + ptime)
- updateStage()
- end repeat
- end if
- if myclick > 2 then
- set stay to 0
- sound stop 1
- sound stop 2
- tell the stage
- go(1, "page" & myclick - 2)
- end tell
- forget(window "pagebar")
- else
- set stay to 0
- tell the stage
- go("return", "mainmenu")
- end tell
- puppetSound(0)
- sound stop 2
- forget(window "pagebar")
- end if
- end
-